﻿
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <meta http-equiv="Access-Control-Allow-Origin" content="*" />
    <script src="../Scripts/jquery-3.3.1.min.js"></script>
    <script type="text/javascript">
        $(function () {

            var server = "http://localhost:13772";
            $.ajax({
                url: server + "/api/KongTou/AddKongTou",
                type: "POST",
                dataType: "json",
                data: { "Source": "0", "Token": "", "UserID": "", "PxgID": "123", "AddressType": "BTC", "BTCAddress": "test", "ETHAddress": "" },
                //error: function (XmlHttpRequest, textStatus, errorThrown) { alert(XmlHttpRequest.responseText); },
                success: function (data) {
                    debugger
                    if (data && data.Code == 0) {
                        alert("提交成功");
                    }
                    else {
                        alert("提交失败");
                    }
                }
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div id="testPost">
            test
        </div>
    </form>
</body>
</html>
